import Vue from 'vue'
Vue.filter('activityStatus', function (status) {
    let result;
    switch (status + '') {
    case '0':
        result = '审核中';
        break;
    case '1':
        result = '报名中';
        break;
    case '2':
        result = '待启动';
        break;
    case '3':
        result = '服务中';
        break;
    case '4':
        result = '已结束';
        break;
    default:
        break;
    }
    return result
});

Vue.filter('myOrderStatus', function (status) {
    let result;
    switch (status + '') {
        case '0':
            result = '待审核';
            break;
        case '1':
            result = '待认领';
            break;
        case '2':
            result = '已认领';
            break;
        case '3':
            result = '已完成';
            break;
        case '4':
            result = '已结束';
            break;
        default:
            break;
    }
    return result
});